/*
 * Programming Quiz: Laugh it Off 2 (5-2)
 *
 * Write a function called `laugh` with a parameter named `num` that represents the number of "ha"s to return.
 *
 * Note:
 *  - make sure your the final character is an exclamation mark ("!")
 *  - make sure that your function produces the correct results when it is called multiple times
 */


 function laugh(num) {
    let val = '';
    for(let i=1; i<=num; i++) {
        val += 'ha';
    }
    return val + '!';
 }

 console.log(laugh(3));